package com.zxy;

public class Demo01 {
    public static void main(String[] args) {
        String a = "hello world java";
        for (int i = 0; i < a.length(); i++) {
            char z = a.charAt(i);
            System.out.println(z);
        }
        System.out.println("++++++++++++++++++++");
        char[] cs = a.toCharArray();
        for (int i = 0; i < cs.length; i++) {
            System.out.println(cs[i]);
        }
    }
}
